const chalk = require('chalk');

// console.log(chalk.bold.blue('hello world'));
// console.log(chalk.blueBright.bold.underline('----Hello Chalk----\n'));
// console.log(chalk.bold.blueBright.underline('----Hello Chalk----\n'));
console.log(chalk('----Hello Chalk 6----'));
console.log(chalk.dim('----Hello Chalk 6----')); //字体泛光
console.log(chalk.italic('----Hello Chalk 6----')); //斜体
console.log(chalk.underline.cyanBright('----Hello Chalk 6----'));  //下划线
console.log(chalk.inverse.yellowBright('----Hello Chalk 6----'));  //翻转背景色和前景色
console.log(chalk.hidden('----Hello Chalk 6----'));  //打印文本，使其不可见
console.log(chalk.strikethrough.whiteBright('----Hello Chalk 6----')); //中间横线
console.log(chalk.visible('----Hello Chalk 6----'));
//模板字符串
let total = 100, sum= 3;
console.log(chalk`一共 {bold.cyan ${total}} 个，本次新增 {bold.red ${sum} }个`);

//自定义颜色
console.log(chalk.rgb(20,100,35).bold('hello world'));
console.log(chalk.hex('#3dec52').bold('hello world'));